<template>
  <div class="film-item">
    <div class="film-item__left">
      <img
        class="film-poster"
        src="https://pic.maizuo.com/usr/movie/f31367bb1a275f032ea3793a0571d9e0.jpg?x-oss-process=image/quality,Q_70"
        alt=""
      />
    </div>
    <div class="film-item__right">
      <div class="film-info">
        <div class="film-name">Hello <span class="film-type">2D</span></div>
        <div class="film-grade">观众评分 <span>7.3</span></div>
        <div class="film-actors">主演：张三 李四 王五</div>
        <div class="film-more">中国大陆 | 137分钟</div>
      </div>
      <div class="film-handle">
        <van-button class="buy">购票</van-button>
      </div>
    </div>
  </div>
</template>

<script>
export default { name: "film-item" };
</script>

<script setup></script>

<style lang="scss" scoped>
.film-item {
  position: relative;
  padding: 15px 15px 15px 0;
  display: flex;
  &::after {
    position: absolute;
    left: 0;
    bottom: 0;
    display: block;
    content: "";
    width: 100%;
    height: 1px;
    background-color: red;
    transform: scaleY(0.5);
  }
  &:last-child {
    &::after {
      display: none;
    }
  }

  &__left {
    width: 66px;
    height: 94px;
  }

  &__right {
    display: flex;
    align-items: center;
    flex: 1;
  }
}

.film-poster {
  display: block;
  width: 100%;
  height: 94px;
}

.film-info {
  padding: 0 10px;
  flex: 1;
}

.film-handle {
  width: 50px;
}

.film-name {
  font-size: 18px;
  color: #000;
}
.film-grade,
.film-actors,
.film-more {
  margin-top: 4px;
  font-size: 12px;
  color: #ccc;
}

.buy {
  padding: 0;
  width: 50px;
  height: 26px;
  font-size: 12px;
  color: #ff5f16;
  border-color: #ff5f16;
}
</style>
